import {
  request
} from '../fetch'

// const headers = {
//   'Content-Type': 'application/x-www-form-urlencoded'
// }
// 微信公众号初次关注
export function weChatFirstVisitAPI(params) {
  return request({
    url: '/user/weChatFirstVisit',
    method: 'get',
    params
  })
}

export function userLoginAPI(params) {
  return request({
    url: '/user/login',
    method: 'get',
    params
  })
}

// 发送验证码
export function sendAuthCodeAPI(params) {
  return request({
    url: 'user/sendAuthCode',
    method: 'get',
    params
  })
}

// 信息认证
export function userInitializeAPI(params) {
  return request({
    url: '/user/initialize',
    method: 'get',
    params
  })
}

// 空接口
export function testAPI(params) {
  return request({
    url: '/user/test',
    method: 'get',
    params
  })
}

export function getIdCardByPhone(params) {
  return request({
    url: '/user/getIdCardByPhone',
    method: 'get',
    params
  })
}
